package com.ephra.dao.proxy;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;

import com.ephra.dao.DatabaseConnection;
import com.ephra.dao.imp.NewsImp;
import com.ephra.dao.item.NewsItem;
import com.ephra.dao.model.News;

public class NewsProxy implements NewsItem{
	private NewsImp dao;
	private Connection connection;
	
	
	public NewsProxy() throws Exception {
		connection = new DatabaseConnection().getCon();
		dao=new NewsImp(connection);
	}

	@Override
	public ArrayList<News> ready() throws SQLException {
		// TODO Auto-generated method stub
		return dao.ready();
	}
}
